package xyz.heyaoshare.exceptions.code;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 错误码
 * @author YueHe
 * @version 0.0.1
 * @since 2025/6/25 上午10:23
 */
@Data
@AllArgsConstructor
@Schema(description = "错误码")
public class ErrorCode implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "错误码")
    private int code;

    @Schema(description = "错误信息")
    private String message;

}